<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
        >

<ui:component>
    <!--@elvariable id="reRender" type="java.lang.Object"-->

    <rich:panel id="postCommentPanel" style="overflow:auto; border:none" bodyClass="rich-laguna-panel-no-header"
            >
        <h:panelGrid columns="1">
            <!--<h:outputLabel value="What's on your mind"/>-->
            <h:panelGrid columns="2">
                <h:inputTextarea id="postCommentTextArea" cols="50" rows="1"
                                 style="position:relative;height:32px;width:100%"
                                 value="#{wallBean.myComment}"
                                 onblur="if(this.value==''){#{rich:element('postLabel')}.style.zIndex = 1;  }"
                                 onfocus="#{rich:element('postLabel')}.style.zIndex = 0;"
                        >
                    <h:outputLabel id="postLabel"
                                   style="margin: 3px; color:gray; cursor:text;  text-align:center; position: absolute; z-index:#{empty wallBean.myComment ? 1 : 0};"
                                   for="#{rich:clientId('postCommentTextArea')}"
                                   value="#{resources.whatIsOnMindText}"/>
                </h:inputTextarea>
                <a4j:commandButton style="height:32px;" value="Share"
                                   action="#{wallBean.shareComment}"
                                   reRender="#{reRender}, postCommentPanel, rightCenterCurrentWallPost"
                        />
            </h:panelGrid>
        </h:panelGrid>
    </rich:panel>

</ui:component>


</html>
